package cn.xd.itstack.springframework.beans.bean;

/**
 * @Classname NewUserService
 * @Description TODO
 * @Date 2022/5/27 下午6:44
 * @Created by lvxiaodong
 */
public class NewUserService {

    private String userId;

    private String company;

    private String location;

    private IUserDao userDao;

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public IUserDao getUserDao() {
        return userDao;
    }

    public void setUserDao(IUserDao userDao) {
        this.userDao = userDao;
    }

    public String getUserById(){
        String result =userDao.getUserId(userId)+"company:"+company+"location:"+location;
        System.out.println(result);
        return result;
    }
}
